package com.mokairui.design.creatormodel.factorymethod;

/**
 * @Program: basic-summary
 * @Description:
 * @Author Mokairui
 * @Date 2021/5/31 21:08
 */
public class Client {
    public static void main(String[] args) {
        CoffeeStore coffeeStore = new CoffeeStore();
        coffeeStore.setCoffeeFactory(new AmericanCoffeeFactory());
        Coffee coffee = coffeeStore.orderCoffee();
        coffee.getName();
    }
}
